<%@ page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <%@include file="/common/common.jsp" %>
    <link rel="stylesheet" href="${basePath}/css/layerPage.css${VERSION}"/>
</head>
<body>
<form id="form" name="form" class="form-horizontal" method="post" action="${basePath}/deploy/deployProcess.json" enctype="multipart/form-data">
    <div class="panel-body">
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-6">
                <input type="file" class="" id="processFile" name="processFile">
            </div>
        </div>
        <button name="submits" id="submits" type="submit" class="btn btn-success btn-submit">部署</button>
    </div>
</form>
<script type="text/javascript">
    var isSuccess = '${deployStatus}';
    if(isSuccess == '0'){
        layer.confirm('流程部署成功！是否关闭窗口？',{icon:1}, function (index) {
            layer.close(index);
            parent.layer.close(parent.pageDialog);
            parent.$("#grid-table").jqGrid().trigger("reloadGrid", [{page: 1}]);
        });
    }else if(isSuccess == '-1'){
        layer.alert("系统异常", {icon: 0}, function (index) {
            layer.close(index);
            parent.layer.close(parent.pageDialog);
            parent.$("#grid-table").jqGrid().trigger("reloadGrid", [{page: 1}]);
        });
    }

</script>
</body>
</html>
